package com.copm.demonstrationsystem.pojo.introductionfeatures;

import com.copm.demonstrationsystem.pojo.commons.Image;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;

import javax.persistence.*;
import java.util.List;

/**
 * @author chuyunfei
 * @date: 2018/4/8
 * @description: 对应企业介绍的页面，该实体只有一条数据，所有的修改都是修改这一条数据
 */
@Entity
@Table(name = "company_introduction")
public class CompanyIntroduction {

    @Id
    @GeneratedValue
    private Long id;

    /**
     * 企业介绍的文本内容：本企业是什么什么....
     */
    @Lob
    @Column(columnDefinition="TEXT")
    private String introduction;

    //页面标题
    private String title;

    //页面视频链接地址
    private String VideoUrl;

    public CompanyIntroduction(){
    }

    public CompanyIntroduction(String introduction, String title, String videoUrl){
        this.introduction = introduction;
        this.title = title;
        this.VideoUrl = videoUrl;
    }

    public Long getId(){
        return id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public String getIntroduction(){
        return introduction;
    }

    public void setIntroduction(String introduction){
        this.introduction = introduction;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVideoUrl() {
        return VideoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        VideoUrl = videoUrl;
    }

    @Override
    public String toString() {
        return "CompanyIntroduction{" +
                "id=" + id +
                ", introduction='" + introduction + '\'' +
                ", title='" + title + '\'' +
                ", VideoUrl='" + VideoUrl + '\'' +
                '}';
    }
}
